package com.example.skytakeoutserver.data.dto

import com.example.skytakeoutserver.data.entity.DishFlavor
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotNull
import lombok.Getter
import lombok.Setter
import java.math.BigDecimal

@Setter
@Getter
@Schema(title = "菜品信息")
data class DishDTO(
    @field:NotNull(message = "菜品id不能为空")
    var id: Long?,

    @Schema(description = "菜品名称")
    var name: String?,

    @Schema(description = "菜品分类id")
    var categoryId: Long?,

    @Schema(description = "菜品价格")
    var price: BigDecimal?,

    @Schema(description = "图片")
    var image: String?,

    @Schema(description = "描述信息")
    var description: String?,

    @Schema(description = "0 停售 1 起售")
    var status: Int?,

    @Schema(description = "口味")
    var flavors: List<DishFlavor>?
)